import request from '@/utils/request'

export function findByPage(query) {
  return request({
    url: '/visitor/findBy',
    method: 'post',
    params:query //表单数据
  })
}
  export function deleteVisitor(visitorId) {
    return request({
      url: '/visitor/deleteById',
      method: 'get',
      params:{"visitorId":visitorId}//form
    })
  }
  export function addVisitor(data) {
    return request({
      url: '/visitor/add',
      method: 'post',
      data//json
    })
  }
  
  export function updateVisitor(data) {
    return request({
      url: '/visitor/update',
      method: 'post',
      data//json
    })
  }